home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / caps / nsISecurityCheckedComponent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  133 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISecurityCheckedComponent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISecurityCheckedComponent_h__
  6. #define __gen_nsISecurityCheckedComponent_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISecurityCheckedComponent */
  19. #define NS_ISECURITYCHECKEDCOMPONENT_IID_STR "0dad9e8c-a12d-4dcb-9a6f-7d09839356e1"
  20.  
  21. #define NS_ISECURITYCHECKEDCOMPONENT_IID \
  22.   {0x0dad9e8c, 0xa12d, 0x4dcb, \
  23.     { 0x9a, 0x6f, 0x7d, 0x09, 0x83, 0x93, 0x56, 0xe1 }}
  24.  
  25. /**
  26.  * Each method of this interface should return a string representing the
  27.  * script capability needed to perform the operation on the target component.
  28.  *
  29.  * Return values of 'AllAccess' or 'NoAccess' unconditionally allow or deny
  30.  * access to the operation.
  31.  */
  32. class NS_NO_VTABLE nsISecurityCheckedComponent : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISECURITYCHECKEDCOMPONENT_IID)
  36.  
  37.   /* string canCreateWrapper (in nsIIDPtr iid); */
  38.   NS_IMETHOD CanCreateWrapper(const nsIID * iid, char **_retval) = 0;
  39.  
  40.   /* string canCallMethod (in nsIIDPtr iid, in wstring methodName); */
  41.   NS_IMETHOD CanCallMethod(const nsIID * iid, const PRUnichar *methodName, char **_retval) = 0;
  42.  
  43.   /* string canGetProperty (in nsIIDPtr iid, in wstring propertyName); */
  44.   NS_IMETHOD CanGetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval) = 0;
  45.  
  46.   /* string canSetProperty (in nsIIDPtr iid, in wstring propertyName); */
  47.   NS_IMETHOD CanSetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSISECURITYCHECKEDCOMPONENT \
  53.   NS_IMETHOD CanCreateWrapper(const nsIID * iid, char **_retval); \
  54.   NS_IMETHOD CanCallMethod(const nsIID * iid, const PRUnichar *methodName, char **_retval); \
  55.   NS_IMETHOD CanGetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval); \
  56.   NS_IMETHOD CanSetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval); 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  59. #define NS_FORWARD_NSISECURITYCHECKEDCOMPONENT(_to) \
  60.   NS_IMETHOD CanCreateWrapper(const nsIID * iid, char **_retval) { return _to CanCreateWrapper(iid, _retval); } \
  61.   NS_IMETHOD CanCallMethod(const nsIID * iid, const PRUnichar *methodName, char **_retval) { return _to CanCallMethod(iid, methodName, _retval); } \
  62.   NS_IMETHOD CanGetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval) { return _to CanGetProperty(iid, propertyName, _retval); } \
  63.   NS_IMETHOD CanSetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval) { return _to CanSetProperty(iid, propertyName, _retval); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSISECURITYCHECKEDCOMPONENT(_to) \
  67.   NS_IMETHOD CanCreateWrapper(const nsIID * iid, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCreateWrapper(iid, _retval); } \
  68.   NS_IMETHOD CanCallMethod(const nsIID * iid, const PRUnichar *methodName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanCallMethod(iid, methodName, _retval); } \
  69.   NS_IMETHOD CanGetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanGetProperty(iid, propertyName, _retval); } \
  70.   NS_IMETHOD CanSetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanSetProperty(iid, propertyName, _retval); } 
  71.  
  72. #if 0
  73. /* Use the code below as a template for the implementation class for this interface. */
  74.  
  75. /* Header file */
  76. class nsSecurityCheckedComponent : public nsISecurityCheckedComponent
  77. {
  78. public:
  79.   NS_DECL_ISUPPORTS
  80.   NS_DECL_NSISECURITYCHECKEDCOMPONENT
  81.  
  82.   nsSecurityCheckedComponent();
  83.  
  84. private:
  85.   ~nsSecurityCheckedComponent();
  86.  
  87. protected:
  88.   /* additional members */
  89. };
  90.  
  91. /* Implementation file */
  92. NS_IMPL_ISUPPORTS1(nsSecurityCheckedComponent, nsISecurityCheckedComponent)
  93.  
  94. nsSecurityCheckedComponent::nsSecurityCheckedComponent()
  95. {
  96.   /* member initializers and constructor code */
  97. }
  98.  
  99. nsSecurityCheckedComponent::~nsSecurityCheckedComponent()
  100. {
  101.   /* destructor code */
  102. }
  103.  
  104. /* string canCreateWrapper (in nsIIDPtr iid); */
  105. NS_IMETHODIMP nsSecurityCheckedComponent::CanCreateWrapper(const nsIID * iid, char **_retval)
  106. {
  107.     return NS_ERROR_NOT_IMPLEMENTED;
  108. }
  109.  
  110. /* string canCallMethod (in nsIIDPtr iid, in wstring methodName); */
  111. NS_IMETHODIMP nsSecurityCheckedComponent::CanCallMethod(const nsIID * iid, const PRUnichar *methodName, char **_retval)
  112. {
  113.     return NS_ERROR_NOT_IMPLEMENTED;
  114. }
  115.  
  116. /* string canGetProperty (in nsIIDPtr iid, in wstring propertyName); */
  117. NS_IMETHODIMP nsSecurityCheckedComponent::CanGetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval)
  118. {
  119.     return NS_ERROR_NOT_IMPLEMENTED;
  120. }
  121.  
  122. /* string canSetProperty (in nsIIDPtr iid, in wstring propertyName); */
  123. NS_IMETHODIMP nsSecurityCheckedComponent::CanSetProperty(const nsIID * iid, const PRUnichar *propertyName, char **_retval)
  124. {
  125.     return NS_ERROR_NOT_IMPLEMENTED;
  126. }
  127.  
  128. /* End of implementation class template. */
  129. #endif
  130.  
  131.  
  132. #endif /* __gen_nsISecurityCheckedComponent_h__ */
  133.